// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期：2024-11-11 21:00:33
// 生成路径: api/v1/system/balance_records.go
// 生成人：王中阳
// desc:余额记录相关参数
// company:云南奇讯科技有限公司
// ==========================================================================

package system

import (
	"github.com/gogf/gf/v2/frame/g"
	commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
	"github.com/tiger1103/gfast/v3/internal/app/system/model"
)

// BalanceRecordsSearchReq 分页请求参数
type BalanceRecordsSearchReq struct {
	g.Meta `path:"/list" tags:"余额记录" method:"get" summary:"余额记录列表"`
	commonApi.Author
	model.BalanceRecordsSearchReq
}

// BalanceRecordsSearchRes 列表返回结果
type BalanceRecordsSearchRes struct {
	g.Meta `mime:"application/json"`
	*model.BalanceRecordsSearchRes
}

// BalanceRecordsExportReq 导出请求
type BalanceRecordsExportReq struct {
	g.Meta `path:"/export" tags:"余额记录" method:"get" summary:"余额记录导出"`
	commonApi.Author
	model.BalanceRecordsSearchReq
}

// BalanceRecordsExportRes 导出响应
type BalanceRecordsExportRes struct {
	commonApi.EmptyRes
}

// 相关连表查询数据
type LinkedBalanceRecordsDataSearchReq struct {
	g.Meta `path:"/linkedData" tags:"余额记录" method:"get" summary:"余额记录关联表数据"`
	commonApi.Author
}

// 相关连表查询数据
type LinkedBalanceRecordsDataSearchRes struct {
	g.Meta `mime:"application/json"`
	*model.LinkedBalanceRecordsDataSearchRes
}

// BalanceRecordsAddReq 添加操作请求参数
type BalanceRecordsAddReq struct {
	g.Meta `path:"/add" tags:"余额记录" method:"post" summary:"余额记录添加"`
	commonApi.Author
	*model.BalanceRecordsAddReq
}

// BalanceRecordsAddRes 添加操作返回结果
type BalanceRecordsAddRes struct {
	commonApi.EmptyRes
}

// BalanceRecordsEditReq 修改操作请求参数
type BalanceRecordsEditReq struct {
	g.Meta `path:"/edit" tags:"余额记录" method:"put" summary:"余额记录修改"`
	commonApi.Author
	*model.BalanceRecordsEditReq
}

// BalanceRecordsEditRes 修改操作返回结果
type BalanceRecordsEditRes struct {
	commonApi.EmptyRes
}

// BalanceRecordsGetReq 获取一条数据请求
type BalanceRecordsGetReq struct {
	g.Meta `path:"/get" tags:"余额记录" method:"get" summary:"获取余额记录信息"`
	commonApi.Author
	Id int `p:"id" v:"required#主键必须"` //通过主键获取
}

// BalanceRecordsGetRes 获取一条数据结果
type BalanceRecordsGetRes struct {
	g.Meta `mime:"application/json"`
	*model.BalanceRecordsInfoRes
}

// BalanceRecordsDeleteReq 删除数据请求
type BalanceRecordsDeleteReq struct {
	g.Meta `path:"/delete" tags:"余额记录" method:"delete" summary:"删除余额记录"`
	commonApi.Author
	Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}

// BalanceRecordsDeleteRes 删除数据返回
type BalanceRecordsDeleteRes struct {
	commonApi.EmptyRes
}
